package core

import "time"

// 服务器设置
type ServerSettings struct {
	RunMode      string
	HttpPort     string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

// app 设置
type AppSettings struct {
	DefaultPageSize     uint
	MaxPageSize         uint
	LogSavePath         string
	LogFileName         string
	LogFileExt          string
	UploadSavePath      string
	UploadServerUrl     string
	UploadFileMaxSize   int
	UploadFileAllowExts []string
}

// 数据库设置
type DatabaseSettings struct {
	DBType       string
	Username     string
	Password     string
	Host         string
	DBName       string
	TablePrefix  string
	Charset      string
	ParseTime    bool
	MaxIdleConns int
	MaxOpenConns int
}
